//
//  QDCaseModel.m
//  QuickDoctor
//
//  Created by ycw on 2016/12/25.
//  Copyright © 2016年 Eric. All rights reserved.
//

#import "QDCaseModel.h"

@implementation QDCaseModel

- (NSString *)description
{
    
    return [self yy_modelDescription];
    
}

//归档,告诉系统需要归档的数据
- (void) encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.illnessType forKey:@"lbl_illnessType"];
    
    [aCoder encodeObject:self.illnessSub forKey:@"lbl_illnessSub"];
    
    [aCoder encodeObject:self.illnessDesc forKey:@"lbl_illnessDesc"];
    
    [aCoder encodeObject:self.illnessImage forKey:@"lbl_illnessImage"];
    
    [aCoder encodeObject:self.illnessTime forKey:@"lbl_illnessTime"];
    
}

//解档,告诉系统取出那些属性

- (nullable instancetype) initWithCoder:(NSCoder *)aDecoder
{
    
    if (self = [super init]) {
        
        self.illnessType = [aDecoder decodeObjectForKey:@"lbl_illnessType"];
        
        self.illnessSub = [aDecoder decodeObjectForKey:@"lbl_illnessSub"];
        
        self.illnessDesc= [aDecoder decodeObjectForKey:@"lbl_illnessDesc"];
        
        self.illnessImage = [aDecoder decodeObjectForKey:@"lbl_illnessImage"];
        
        self.illnessTime = [aDecoder decodeObjectForKey:@"lbl_illnessTime"];
        
    }
    
    return self;
    
}





@end
